home *** CD-ROM | disk | FTP | other *** search
/ AppleScript - The Beta Release / AppleScript - The Beta Release.iso / Development Tools / Unsupported Tools / SignatureToApp 1.1 / SignatureToApp.h < prev   
Encoding:
Text File  |  1992-06-16  |  1.3 KB  |  48 lines  |  [TEXT/KAHL]

  1. ////
  2. ////    SignatureToApp.h        Interface for SignatureToApp
  3. ////
  4. ////    By Jens Alfke            ©1992 Apple Computer, Inc. All rights reserved.
  5. ////
  6.  
  7. #pragma once
  8.  
  9. #ifndef __SIGNATURETOAPP__
  10.     #define __SIGNATURETOAPP__
  11.  
  12. #ifndef __PROCESSES__
  13.     #include <Processes.h>
  14. #endif
  15.  
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19.  
  20. typedef enum{
  21.     Sig2App_FindProcess        =0,
  22.     Sig2App_FindApplication,
  23.     Sig2App_LaunchApplication
  24. } Sig2App_Mode;
  25.  
  26. // Launch control flags: these are part of the Process Manager. The relevant ones are:
  27. //    launchContinue        Don't quit this app after launching the new one (you want to use this!!)
  28. //    launchUseMinimum    Use the minimum heap size as specified in the app's SIZE resource.
  29. //    launchDontSwitch    Don't activate the launched app.
  30. //    launchInhibitDaemon    Prevent launch of background-only apps.
  31. // See IM-VI p.29-15 for the full poop.
  32.  
  33.  
  34. OSErr
  35. SignatureToApp(    OSType sig,                        // Signature of app
  36.                 const FSSpec *document,            // Document to open with app, or NULL
  37.                 ProcessSerialNumber *psn,        // Returns PSN of app (ignored if NULL)
  38.                 FSSpec *fileSpec,                // Returns location of app (ignored if NULL)
  39.                 Boolean *launched,                // Set to TRUE if I had to launch (ignored if NULL)
  40.                 Sig2App_Mode mode,                // Mode -- find proc/find app/launch app
  41.                 LaunchFlags launchControlFlags    // Launch control flags; see Process Mgr
  42.               );
  43.  
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47.  
  48. #endif